﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200089D RID: 2205
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GmTalkScNotify : IMessage<GmTalkScNotify>, IMessage, IEquatable<GmTalkScNotify>, IDeepCloneable<GmTalkScNotify>, IBufferMessage
	{
		// Token: 0x17001BC0 RID: 7104
		// (get) Token: 0x06006289 RID: 25225 RVA: 0x00105A3C File Offset: 0x00103C3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GmTalkScNotify> Parser
		{
			get
			{
				return GmTalkScNotify._parser;
			}
		}

		// Token: 0x17001BC1 RID: 7105
		// (get) Token: 0x0600628A RID: 25226 RVA: 0x00105A43 File Offset: 0x00103C43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GmTalkScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001BC2 RID: 7106
		// (get) Token: 0x0600628B RID: 25227 RVA: 0x00105A55 File Offset: 0x00103C55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GmTalkScNotify.Descriptor;
			}
		}

		// Token: 0x0600628C RID: 25228 RVA: 0x00105A5C File Offset: 0x00103C5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GmTalkScNotify()
		{
		}

		// Token: 0x0600628D RID: 25229 RVA: 0x00105A6F File Offset: 0x00103C6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GmTalkScNotify(GmTalkScNotify other) : this()
		{
			this.msg_ = other.msg_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600628E RID: 25230 RVA: 0x00105A94 File Offset: 0x00103C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GmTalkScNotify Clone()
		{
			return new GmTalkScNotify(this);
		}

		// Token: 0x17001BC3 RID: 7107
		// (get) Token: 0x0600628F RID: 25231 RVA: 0x00105A9C File Offset: 0x00103C9C
		// (set) Token: 0x06006290 RID: 25232 RVA: 0x00105AA4 File Offset: 0x00103CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Msg
		{
			get
			{
				return this.msg_;
			}
			set
			{
				this.msg_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x06006291 RID: 25233 RVA: 0x00105AB7 File Offset: 0x00103CB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GmTalkScNotify);
		}

		// Token: 0x06006292 RID: 25234 RVA: 0x00105AC5 File Offset: 0x00103CC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GmTalkScNotify other)
		{
			return other != null && (other == this || (!(this.Msg != other.Msg) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006293 RID: 25235 RVA: 0x00105AF8 File Offset: 0x00103CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Msg.Length != 0)
			{
				num ^= this.Msg.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006294 RID: 25236 RVA: 0x00105B39 File Offset: 0x00103D39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006295 RID: 25237 RVA: 0x00105B41 File Offset: 0x00103D41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006296 RID: 25238 RVA: 0x00105B4A File Offset: 0x00103D4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Msg.Length != 0)
			{
				output.WriteRawTag(50);
				output.WriteString(this.Msg);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006297 RID: 25239 RVA: 0x00105B84 File Offset: 0x00103D84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Msg.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Msg);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006298 RID: 25240 RVA: 0x00105BC7 File Offset: 0x00103DC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GmTalkScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Msg.Length != 0)
			{
				this.Msg = other.Msg;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006299 RID: 25241 RVA: 0x00105BFD File Offset: 0x00103DFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600629A RID: 25242 RVA: 0x00105C08 File Offset: 0x00103E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Msg = input.ReadString();
				}
			}
		}

		// Token: 0x040025AF RID: 9647
		private static readonly MessageParser<GmTalkScNotify> _parser = new MessageParser<GmTalkScNotify>(() => new GmTalkScNotify());

		// Token: 0x040025B0 RID: 9648
		private UnknownFieldSet _unknownFields;

		// Token: 0x040025B1 RID: 9649
		public const int MsgFieldNumber = 6;

		// Token: 0x040025B2 RID: 9650
		private string msg_ = "";
	}
}
